{% extends "base.html" %}

{% block title %}Edit Region Quotas{% endblock %}
{% block crumb %}&rsaquo; Edit Region Quotas{% endblock %}

{% block content %}
  <h1>Editing Quotas for {{region.name}}</h1>
  {% if message %}
  <br>
  <font color="RED"><b>{{message}}</b></font>
  <br>
  {% endif %}
  <br>
  <br>
  <table>
	  <tr><td>

<h2>Delete Quotas</h2>
  <table>
	  <tr>
		  <td>Rating</td>
		  <td>Number</td>
		  <td>Delete?</td>
	  </tr>
  <form enctype="multipart/form-data" method="post" action="">{% csrf_token %}
  {% for quota in quotas %}
  <tr>
	  <td>{{quota.rating}}</td>
	  <td>{{quota.number}}</td>
	  <td><input type="checkbox" name="quota" value="{{quota.pk}}"></td>
  </tr>
  {% endfor %}
    </table>
	<input type="submit" name="del_quota" value="Delete Selected" />
	  </form>

</td><td></td><td>
	 <h2>Add Quotas</h2>
  <form enctype="multipart/form-data" method="post" action="">{% csrf_token %}
      {{ form.as_p }}
      <input type="submit" name="add_quota" value="Add Quota">
  </form>
	  </td></tr>
	</table>
{% endblock %}